/**
 * Copyright 2016-2018 mobaas.com
 */
package com.mobaas.devops.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mobaas.devops.dao.HostDao;
import com.mobaas.devops.model.HostStat;
import com.mobaas.devops.service.HostService;

/**
 * 
 * @author billy zhang
 * 
 */
@Service
public class HostServiceImpl implements HostService {

	@Autowired
	private HostDao hostDao;
	
	@Override
	public void saveHostStat(List<HostStat> statlist) {
		
		for (HostStat stat : statlist) {
			hostDao.insertHostStat(stat);
		}
	}

}
